class CarMerchantModelEntity {
  List<CarMerchantModelData> data;
  int code;
  String msg;

  CarMerchantModelEntity({this.data, this.code, this.msg});

  CarMerchantModelEntity.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<CarMerchantModelData>();
      (json['data']['list'] as List).forEach((v) {
        data.add(new CarMerchantModelData.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class CarMerchantModelData {
  String merchant_id; //	商户ID
  String group_id; //商户组ID
  String merchant_name; //	商户名称
  String merchant_avatar; //	商户门头照片
  String service_tel; //	客服电话
  String business_day_begin; //营业日开始日期
  String business_day_end; //营业日结束日期
  String business_hours_begin; //	营业开始时间
  String business_hours_end; //	营业结束时间
  String province; //	省份
  String city; //	城市
  String county; //	区域/县
  String detail_address; //	详细地址
  String lng_lat; //	经纬度
  String lng; //	经度
  String lat; //	纬度
  String distance; //距离，单位米
  String consumption; //	人均消费，多少元/人
  String sales_num; //	销量
  String comment_score; //	评分

  CarMerchantModelData({
    this.merchant_id, // 商户ID
    this.group_id, //商户组ID
    this.merchant_name, // 商户名称
    this.merchant_avatar, // 商户门头照片
    this.service_tel, // 客服电话
    this.business_day_begin, //营业日开始日期
    this.business_day_end, //营业日结束日期
    this.business_hours_begin, //  营业开始时间
    this.business_hours_end, //  营业结束时间
    this.province, //  省份
    this.city, //  城市
    this.county, //  区域/县
    this.detail_address, //  详细地址
    this.lng_lat, // 经纬度
    this.lng, // 经度
    this.lat, // 纬度
    this.distance, //距离，单位米
    this.consumption, // 人均消费，多少元/人
    this.sales_num, // 销量
    this.comment_score, // 评分
  });

  CarMerchantModelData.fromJson(Map<String, dynamic> json) {
    merchant_id = json['merchant_id'].toString(); // 商户ID
    group_id = json['group_id'].toString(); //商户组ID
    merchant_name = json['merchant_name'].toString(); // 商户名称
    merchant_avatar = json['merchant_avatar'].toString(); // 商户门头照片
    service_tel = json['service_tel'].toString(); // 客服电话
    business_day_begin = json['business_day_begin'].toString(); //营业日开始日期
    business_day_end = json['business_day_end'].toString(); //营业日结束日期
    business_hours_begin = json['business_hours_begin'].toString(); //  营业开始时间
    business_hours_end = json['business_hours_end'].toString(); //  营业结束时间
    province = json['province'].toString(); //  省份
    city = json['city'].toString(); //  城市
    county = json['county'].toString(); //  区域/县
    detail_address = json['detail_address'].toString(); //  详细地址
    lng_lat = json['lng_lat'].toString(); // 经纬度
    lng = json['lng'].toString(); // 经度
    lat = json['lat'].toString(); // 纬度
    distance = json['distance'].toString(); //距离，单位米
    consumption = json['consumption'].toString(); // 人均消费，多少元/人
    sales_num = json['sales_num'].toString(); // 销量
    comment_score = json['comment_score'].toString(); // 评分
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['merchant_id'] = this.merchant_id; // 商户ID
    data['group_id'] = this.group_id; //商户组ID
    data['merchant_name'] = this.merchant_name; // 商户名称
    data['merchant_avatar'] = this.merchant_avatar; // 商户门头照片
    data['service_tel'] = this.service_tel; // 客服电话
    data['business_day_begin'] = this.business_day_begin; //营业日开始日期
    data['business_day_end'] = this.business_day_end; //营业日结束日期
    data['business_hours_begin'] = this.business_hours_begin; //  营业开始时间
    data['business_hours_end'] = this.business_hours_end; //  营业结束时间
    data['province'] = this.province; //  省份
    data['city'] = this.city; //  城市
    data['county'] = this.county; //  区域/县
    data['detail_address'] = this.detail_address; //  详细地址
    data['lng_lat'] = this.lng_lat; // 经纬度
    data['lng'] = this.lng; // 经度
    data['lat'] = this.lat; // 纬度
    data['distance'] = this.distance; //距离，单位米
    data['consumption'] = this.consumption; // 人均消费，多少元/人
    data['sales_num'] = this.sales_num; // 销量
    data['comment_score'] = this.comment_score; // 评分
    return data;
  }
}
